x86/msr: add Raw and Host domain policies
authorSergey Dyasli <sergey.dyasli@citrix.com>
Mon, 19 Feb 2018 11:29:26 +0000 (11:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 20 Feb 2018 18:35:27 +0000 (18:35 +0000)
commit197fbdb501257fdbbe0cfed35e3a99ef5b166107
treec55c07d17af14c369b415ce5460f3d0725be954f
parenta44f1697968e04fcc6145e3bd51c748b57047240
x86/msr: add Raw and Host domain policies

Raw policy contains the actual values from H/W MSRs. Add PLATFORM_INFO
msr to the policy during probe_cpuid_faulting().

Host policy may have certain features disabled if Xen decides not
to use them. For now, make Host policy equal to Raw policy with
cpuid_faulting availability dependent on X86_FEATURE_CPUID_FAULTING.

Finally, derive HVM/PV max domain policies from the Host policy.

Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/msr.c
xen/include/asm-x86/msr.h